package com.amigo.online.consumer.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;

@FeignClient(name = "amigo-online-provider-user")
public interface BlackService {

	@RequestMapping(value = "/black/getBlackList/{page}/{size}", method = RequestMethod.GET)
	public ResponseEntity<Response> getBlackList(@PathVariable("page") Integer page,@PathVariable("size")  Integer size);
	
	@RequestMapping(value = "/black/black/{userId}", method = RequestMethod.GET)
	public ResponseEntity<Response> blackUserById(@PathVariable("userId") Long userId);
	
	@RequestMapping(value = "/black/cancelBlack/{userId}", method = RequestMethod.GET)
	public ResponseEntity<Response> cancelBlackById(@PathVariable("userId") Long userId);

	@RequestMapping(value = "/black/isBlack/{userId}", method = RequestMethod.GET)
	public ResponseEntity<Response> isBlack(@PathVariable("userId") Long userId);

}
